#include <bits/stdc++.h>
#define int long long
using namespace std;


void solve(){
	int n;
	cin >> n;
	int temp;
	int sum = 0;
	for(int i=1;i<=n;i++){
		cin >> temp;
		sum += temp;
	}
	cout << sum << '\n';
}



signed main(){
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int t;
	t=1;
	while(t--){
		solve();
	}
	return 0;
}
